package com.study.www.test1.entity;

import lombok.Data;
import lombok.ToString;

import javax.persistence.*;
import java.util.Date;

/**
 * 用户查询对象
 * @author : 89007337.zhuyanpeng
 * @Description: :
 * @date :Create in  2019/6/27- 21:11
 * @Version: V1.0
 * @Modified By:
 **/
@Data
@ToString
@Entity
@Table(name = "sys_user")
public class User {

    @Id
    private String id;

    @Column(name = "name")
    private String name;

    @Column(name = "sex")
    private Short sex;

    @Column(name = "age")
    private Integer age;

    @Column(name = "register_time")
    @Temporal(TemporalType.TIMESTAMP)
    private Date registerTime;

}
